Page({
  data: {
    routers: [
      {
        name: '前端',
        children: [
          {
            className: 'tui-primary',
            name: 'vue',
            url: 'VUE'
          },
          {
            className: 'tui-light-primary',
            name: 'react',
            url: 'REACT'
          },
          {
            className: 'tui-dark-primary',
            name: 'css',
            url: 'CSS'
          },
          {
            className: 'tui-dLight-primary',
            name: 'js',
            url: 'JS'
          }
        ]
      }, {
        name: '后端',
        children: [
          {
            className: 'tui-danger',
            name: 'java',
            url: 'JAVA'
          },
          {
            className: 'tui-warning',
            name: 'python',
            url: 'PYTHON'
          },
          {
            className: 'tui-black',
            name: 'nodejs',
            url: 'NODEJS'
          }
        ]
      },
    ]
  },
  onLoad: function (options) {

  },
  toList(e) {
    wx.navigateTo({
      url: '../kindsList/kindsList?kind=' + e.currentTarget.id
    })
  }
})